package org.dromara.community.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.dromara.community.entity.AsPartyBuilding;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AsPartyBuildingDTO extends AsPartyBuilding {

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /**
     * 主菜单
     */
    private String category;
    /**
     * 子菜单
     */
    private String subcategory;
    /**
     * 标题
     */
    private String title;
    /**
     * 内容
     */
    private String description;
    /**
     * 党建关联的标签
     */
    private String tag;
    /**
     * 图片路径
     */
    @Schema(description = "存入url")
    private List<String> urlList;
}
